<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="../admin/common.jsp"></jsp:include>
<!DOCTYPE html>
<html lang="zh-cn">

	<body>
		<div id="navLwapper">
			<div id="navL">
				<div class="navTop clearfix">
					<div class="perImg"><img alt="" src="${pageContext.request.contextPath}/img/icon36.png"></div>
					<div class="perMesg">
						<p class="p1">用户名：</p>
						<div class="perName"><span title="dahuotu">${uname}</span><i>管理员</i></div>
						<p class="safety">帐号安全度：<span>低</span></p>
						<div class="safetyName">
							<span class="apcol1"></span>
						</div>
					</div>
				</div>
				<ul class="msgLink clearfix">
					<li>
						<a href="#">帐号信息<span class="mesNum"></span></a>
					</li>
					<li>
						<a href="articleList.html">增加管理员</a>
					</li>
					<li>
						<a href="#">消息中心</a>
					</li>
				</ul>
				<ul class="navMain">
					<li class="sp active">
						<a href="/medicinemgr/admin/dep">查看科室</a><span class="sp1"></span></li>
					<li class="">
						<a href="/medicinemgr/admin/showdm">查看药品</a><span class="sp2"></span></li>
					<li>
						<a href="/medicinemgr/admin/showfactory">查看厂商</a><span class="sp3"></span></li>
					<li>
						<a href="">功能功能</a><span class="sp4"></span></li>
				</ul>
			</div>
		</div>
		<div class="cenMain">
			<div class="askans subMright subBs">
				<p>科室设置</p>
				<!--内容-->
				<div class="admin radius">
					<div class="alert alert-yellow padding">
						<span class="close rotate-hover"></span><strong>使用说明</strong>
						<p class="text-small">对科室进行删除、修改、增加操作管理，以方便维护...</p>
					</div>
					<form class="" method="post">
						<div class="admin-panel">
							<div class="padding border-bottom">
								<div class="button-toolbar margin-bottom fixed text-center bg-white" data-style="fixed-bottom" data-offset-fixed="350">
									<div class="button-group">
										<a href="${pageContext.request.contextPath}/admin/addd.jsp" class="button border-main">
											<span class="icon-edit icon"></span>添加
										</a>
									</div>
								</div>
							</div>
							<!--
                        	作者：1979788761@qq.com
                        	时间：2015-11-19
                        	描述：注意，后台程序人员一定要在td里绑定data-title="表头名"否则移动端无法响应式
                        -->
                        <div class="table-responsive-y">
                        	<table id="data-table" class="table table-hover">
                        		<thead>
                        			<tr>




                        			<!-- <table border="1px">
		<caption>科室信息列表</caption><br/>
		<input type="button" value="新增科室" onclick="location.href='/medicinemgr/addd'"/>&nbsp;&nbsp;
		<input type="button" value="返回" onclick="location.href='/medicinemgr/back1'"/>
		&nbsp;&nbsp;<span>${msg}</span>
		<tr>
			<th style="width:130px">科室编号</th>
			<th style="width:130px">科室名称</th>
			<th style="width:130px">科室地址</th>
			<th style="width:130px">科室电话</th>
			<th style="width:190px">操作</th>
		</tr>
		<c:forEach items="${deplist}" var="dep">
			<tr>
				<td>${dep.dId}</td>
				<td>${dep.dname}</td>
				<td>${dep.daddress}</td>
				<td>${dep.dphone}</td>
				<td>
			      <a href="/medicinemgr/deld?did=${dep.dId}">删除</a>
			      <a href="/medicinemgr/editd?did=${dep.dId}">修改</a>
			      <a href="/medicinemgr/showdm?did=${dep.dId}">查询本科室药品</a>
			    </td>
			</tr>
		</c:forEach>
	</table> -->
	                                     <th width="100">操作</th>
                        				<th width="150">科室编号</th>
                        				<th width="90">科室名称</th> 
                        				<th width="120">科室地址</th>
                        				<th width="120">科室电话</th>
                        				
                        				
                        
                        			</tr>
                        		</thead>
                        		<tbody>
                        	<c:forEach items="${deplist}" var="dep">
                        			<td>
                        				<tddata-title="操作">
                        				<div class="button-toolbar">
                        					<div class="button-group">
                        						<a href="/medicinemgr/admin/editd?did=${dep.dId}" class="button bg-blue" title="修改">
                        							<span class="icon-edit icon"></span>
                        						</a>
                        						<a href="/medicinemgr/admin/deld?did=${dep.dId}" class="button bg-yellow btn-del" title="删除">
                        							<span class="icon-trash-o icon"></span>
                        						</a>
                        					</div>
                        				</div>
                        			</td>
                        			
                        		<td>${dep.dId}</td>
				                <td>${dep.dname}</td>
				                 <td>${dep.daddress}</td>
				                <td>${dep.dphone}</td>
                        		</tr>
                        	</c:forEach>

                        </tbody>
                    </table>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</body>
	<script src="js/layer/layer.js"></script>
	<script src="js/admin.js"></script>
	<script>
		$(function() {

		});

		$(".btn-del").click(function() {
			layer.confirm('您确定要删除微信公众号信息？', {
				btn: ['确定', '取消'] //按钮
			}, function() {
				//执行删除

			}, function() {

			});
		});
	</script>

</html>